package com.hbx.residential_service.dao;

import com.hbx.residential_service.domain.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AdminDao {
    @Select("select * from admins where adminname=#{adminname} and adminpwd=#{adminpwd}")
    Admin adminLogin(@Param("adminname") String adminname, @Param("adminpwd")String adminpwd);
    @Select("select * from admins where adminid=#{adminid}")
    public Admin findById(String adminid)throws Exception;
}
